import Layout from '@/layout'

const dataQueryRoute = {
  path: '/data',
  component: Layout,
  redirect: '/data/ns',
  name: 'data',
  meta: {
    title: '数据查询',
    icon: 'dashboard',
    roles: ['admin']
  },
  children: [
    {
      path: 'ns',
      component: () => import('@/views/pages/ns/index'),
      name: 'ns',
      meta: { title: '国标数据', roles: ['admin'] }
    },
    {
      path: 'extension',
      component: () => import('@/views/pages/extension/index'),
      name: 'extension',
      meta: { title: '扩展数据', roles: ['admin'] }
    }
  ]
}

export default dataQueryRoute
